home *** CD-ROM | disk | FTP | other *** search
- /* C code generated by: */
- /* Visual Arts Version 2.1 */
- /* Copyright (c)1994-95 Danny Y. Wong All rights reserved */
- /* Calgary, Alberta (CANADA) */
-
- extern UBYTE *ContextContextVars[];
- extern struct Window *ContextWnd;
- extern struct Gadget *ContextGadgets[ContextNumGads];
- extern void CreateContextLists(void);
- extern UBYTE *ModelsLabels[];
-
- struct List *ContextLists[1];
-
- void CreateContextLists(void)
- {
- short i;
-
- i=0;
- while (ModelsLabels[i])
- AddNewNode(ContextLists[0], ModelsLabels[i++]);
-
- }
-
- /* gadget functions */
-
- int okObj(struct VAobject VAObject)
- {
- if (VAObject.va_Gadget->Activation & GACT_TOGGLESELECT)
- {
- if (VAObject.va_Gadget->Flags & GFLG_SELECTED)
- ContextContextVars[0]=(UBYTE *)"1 ";
- else
- ContextContextVars[0]=(UBYTE *)"0 ";
- }
- else
- ContextContextVars[0]=(UBYTE *)"2 ";
- return(1L);
- }
- /* Button OK */
-
- int HDObj(struct VAobject VAObject)
- {
- if (VAObject.va_Gadget->Activation & GACT_TOGGLESELECT)
- {
- if (VAObject.va_Gadget->Flags & GFLG_SELECTED)
- ContextContextVars[1]=(UBYTE *)"1 ";
- else
- ContextContextVars[1]=(UBYTE *)"0 ";
- }
- else
- ContextContextVars[1]=(UBYTE *)"2 ";
- return(1L);
- }
- /* Button Hard Drive */
-
- int cancelObj(struct VAobject VAObject)
- {
- if (VAObject.va_Gadget->Activation & GACT_TOGGLESELECT)
- {
- if (VAObject.va_Gadget->Flags & GFLG_SELECTED)
- ContextContextVars[2]=(UBYTE *)"1 ";
- else
- ContextContextVars[2]=(UBYTE *)"0 ";
- }
- else
- ContextContextVars[2]=(UBYTE *)"2 ";
- return(1L);
- }
- /* Button Cancel */
-
- int cdObj(struct VAobject VAObject)
- {
- if (VAObject.va_Gadget->Flags & GFLG_SELECTED)
- ContextContextVars[3]=(UBYTE *)"1 ";
- else
- ContextContextVars[3]=(UBYTE *)"0 ";
- return(1L);
- }
- /* Check Box CD-ROM */
-
- int modelObj(struct VAobject VAObject)
- {
- return(1L);
- }
- /* ListView */
-
-